import request from '@/utils/request'

// 查询退费记录列表
export function listChargeReturn(query) {
  return request({
    url: '/service/chargeReturn/list',
    method: 'get',
    params: query
  })
}

// 查询退费记录详细
export function getChargeReturn(id) {
  return request({
    url: '/service/chargeReturn/' + id,
    method: 'get'
  })
}

// 新增退费记录
export function addChargeReturn(data) {
  return request({
    url: '/service/chargeReturn',
    method: 'post',
    data: data
  })
}

// 修改退费记录
export function updateChargeReturn(data) {
  return request({
    url: '/service/chargeReturn',
    method: 'put',
    data: data
  })
}

// 删除退费记录
export function delChargeReturn(id) {
  return request({
    url: '/service/chargeReturn/' + id,
    method: 'delete'
  })
}
